package com.ccc.demoboot.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ccc.demoboot.pojo.Material;
import org.apache.ibatis.annotations.Param;

import java.util.*;

public interface MaterialMapper extends BaseMapper<Material> {
    List<Map<String, Object>> selectDuo();

    Map<String, Object> upSelectId(Integer id);

    List<Map<String, Object>> searchSelectId(String materialname);


    List<Material> zhuSelectQ();

    List<Material> zhuSelectName();

    List<Map<String, Object>> selectAllMaterial(@Param("ew") QueryWrapper materialQueryWrapper);

    Map<String, Object> selectOne(@Param("id") Integer id);
}